<h1>MC Note List</h1>

<table class = "display" id="note_table">
  <thead>
    <tr>
      <th>Id</th>
      <th>Subject</th>
      <th>Note</th>
      <th>Created at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($note_list as $note): ?>
    <tr>
      <td><a href="<?php echo url_for('mc_note/show?id='.$note['id']) ?>"><?php echo $note->getid() ?></a></td>
      <td><?php echo $note->getsubject() ?></td>
      <td><?php echo $note->getnote() ?></td>
      <td><?php echo $note->getcreated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('mc_note/new?client_id='.$client_id) ?>">New</a>
	<?php slot('submenu') ?>
	<ul>
		<li><?php echo link_to(image_tag('contact info.png', array('title'=>"Contact Info", 'width'=>'65px')), 'mc/show?id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('officers.png', array('title'=>"Officers", 'width'=>'65px')),'officers/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('managementteam.png', array('title'=>"ManagementTeam", 'width'=>'65px')),'management_team/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('companydescription.png', array('title'=>"Company Description", 'width'=>'65px')), 'company_description/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('other note.png', array('title'=>"Other Notes", 'width'=>'65px')), 'mc_note/index?client_id='.$client_id) ?></li>		
	</ul>
	<?php end_slot() ?>
	
	
	<script type="text/javascript">
	jQuery(document).ready(jQuery(function() {
		jQuery('#note_table').dataTable();
	} ));
	</script>